<?php
class Widget_Text_Area extends WP_Widget {
function Widget_Text_Area() {
    global $themename;
    	parent::WP_Widget(false, 'Add Text To Sidebar!');
    }
    function widget( $args, $instance ) {
		extract($args);
		echo $before_widget;
          if($instance['link']){
		    $text = apply_filters( 'widget_text', $instance['link'], $instance );
            echo wpautop($text);
          } 
		echo $after_widget;
	}

	function update( $new_instance, $old_instance ) {
		$instance = $old_instance;
        $instance['link'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['link']) ) ); 
		return $instance;
	}

	function form( $instance ) {
		$instance = wp_parse_args( (array) $instance, array( 'link' => '') );
?>
    <p>
			<label for="<?php echo $this->get_field_id( 'link' ); ?>"><?php echo __( 'Link for Banner' ); ?>:</label>
			<!--<input type="text" id="<?php echo $this->get_field_id( 'link' ); ?>" name="<?php echo $this->get_field_name( 'link' ); ?>" value="<?php echo $instance['link']; ?>" class="widefat" style="width:100%;" />-->
			<textarea id="<?php echo $this->get_field_id( 'link' ); ?>" name="<?php echo $this->get_field_name( 'link' ); ?>" class="widefat" style="width:100%;height:100px;"><?php echo $instance['link']; ?></textarea>
    </p>

<?php
	}
}
function _widget_init() {
    	register_widget('Widget_Text_Area');
    }
add_action( 'widgets_init', '_widget_init' );
?>